package com.two.lbms.vo;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author hjx
 * @Date 2023/7/28 20:21
 * @version V1.0
 */
    
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeList {
    /**
    * 公告id
    */
    private Integer id;

    /**
    * 通知
    */
    @Size(max = 255,message = "通知最大长度要小于 255")
    private String notice;

    /**
    * 内容
    */
    @Size(max = 255,message = "内容最大长度要小于 255")
    private String content;

    /**
    * 发布时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime publishDate;

    /**
    * 发布人
    */
    @Size(max = 30,message = "发布人最大长度要小于 30")
    private String author;

    /**
    * 管理员id
    */
    private Integer adminId;
}